package ui;

import net.jcip.annotations.Immutable;
import surface.Canvas;
import surface.CanvasObserver;

@Immutable
public class View implements CanvasObserver {

	private final Canvas canvas;

	public View(final Canvas canvas) {
		this.canvas = canvas;
	}

	@Override
	public void update(boolean mouseReleased) {
		canvas.displayShapes();
	}
	
	public static View newInstance(final Canvas canvas) {
		return new View(canvas);
	}
}
